import { modulize } from '@awey/maxios'

const request = modulize(() => ({
  axiosConfig: {
    headers: {
      cath: '345'
    }
  }
}))

export default {
  testGet<T = any>(data: T) {
    return request({
      axiosConfig: {
        url: '/get/test',
        params: data
      }
    })
  },
  testPost<T = any>(data: T) {
    return request({
      axiosConfig: {
        url: '/post/test',
        method: 'post',
        data
      }
    })
  }
}
